/* chat.css */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
}

.container {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.sidebar {
    width: 250px;
    background-color: #333;
    color: white;
    padding: 20px;
    border-radius: 5px;
    margin-right: 20px;
}

.sidebar h2 {
    margin-top: 0;
    border-bottom: 1px solid #555;
    padding-bottom: 10px;
}

#userList {
    list-style-type: none;
    padding: 0;
}

#userList li {
    padding: 8px 0;
    border-bottom: 1px solid #444;
}

.chat-area {
    flex: 1;
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

#messages {
    height: 400px;
    overflow-y: auto;
    padding: 15px;
    background-color: #f9f9f9;
}

.message {
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 5px;
    background-color: #e9e9e9;
}

.input-area {
    display: flex;
    padding: 15px;
    border-top: 1px solid #eee;
}

#messageInput {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-right: 10px;
}

#userSelect {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-right: 10px;
}

button {
    padding: 10px 15px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

button:hover {
    background-color: #45a049;
}